<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%pre_user_message}}".
 *
 * @property string $Message_id
 * @property string $uid
 * @property string $Message_text
 * @property string $Message_time
 * @property integer $status
 */
class PreUserMessage extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%pre_user_message}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid', 'Message_text', 'Message_time'], 'required'],
           // [['uid', 'status'], 'integer'],
            [['uid'], 'integer'],
            [['Message_text'], 'string'],
            [['Message_time'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'Message_id' => '留言ID',
            'uid' => '留言者的id',
            'Message_text' => '留言内容',
            'Message_time' => '留言时间',
            'status' => '状态',
        ];
    }
}
